package kr.saeildamil.androidstudy_second;

import kr.saeildamil.androidstudy_second20.Ch20Main;
import kr.saeildamil.androidstudy_second21.ch21Main;
import kr.saeildamil.androidstudy_second23.Ch23Main;
import kr.saeildamil.androidstudy_second24.Ch24Main;
import kr.saeildamil.androidstudy_second25.Ch25Main;
import kr.saeildamil.androidstudy_second26.Ch26Main;
import kr.saeildamil.androidstudy_second27.Ch27Main;
import kr.saeildamil.androidstudy_second28.Ch28Main;
import kr.saeildamil.androidstudy_second2930.Ch2930Main;
import kr.saeildamil.androidstudy_second31.Ch31Main;
import kr.saeildamil.androidstudy_second33.Ch33Main;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	public void mOnClick(View v){
		Intent intent=new Intent();
		switch (v.getId()) {
		case R.id.main_btn20:
			intent.setClass(this, Ch20Main.class);
			break;
		case R.id.main_btn21:
			intent.setClass(this, ch21Main.class);
		case R.id.main_btn22:
			break;
		case R.id.main_btn23:
			intent.setClass(this, Ch23Main.class);
			break;
		case R.id.main_btn24:
			intent.setClass(this, Ch24Main.class);
			break;
		case R.id.main_btn25:
			intent.setClass(this, Ch25Main.class);
			break;
		case R.id.main_btn26:
			intent.setClass(this, Ch26Main.class);
			break;
		case R.id.main_btn27:
			intent.setClass(this, Ch27Main.class);
			break;
		case R.id.main_btn28:
			intent.setClass(this, Ch28Main.class);
			break;
		case R.id.main_btn29:
			intent.setClass(this, Ch2930Main.class);
			break;
		case R.id.main_btn31:
			intent.setClass(this, Ch31Main.class);
			break;
		case R.id.main_btn33:
			intent.setClass(this, Ch33Main.class);
			break;
		}
		startActivity(intent);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
